package chat.whiteboard.draw.elements;

import java.awt.Graphics;

public class Line extends Drawing {
	public Line(int xpt, int ypt) {
		x = xpt;
		y = ypt;
		w = 1;
		h = 30;
		saveAsRect();
	}

	public void draw(Graphics g) {
		g.setColor(color);
		g.drawLine(x, y, x+w, y+h);
	}

}
